home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
comm2
/
termsorc.lha
/
Extras
/
Source
/
gtlayout-source.lha
/
LTP_AddHistory.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-24
|
993b
|
39 lines
/* GadTools layout toolkit
**
** Copyright © 1993-1995 by Olaf `Olsen' Barthel
** Freely distributable.
*/
#include "gtlayout_global.h"
VOID __regargs
LTP_AddHistory(struct SGWork *Work)
{
ObjectNode *Node;
if(GETOBJECT(Work -> Gadget,Node))
{
if(Node -> Special . String . HistoryHook)
{
struct MinList *List = Node -> Special . String . HistoryHook -> h_Data;
while(Node -> Special . String . NumHistoryLines >= Node -> Special . String . MaxHistoryLines)
{
CallHookPkt(Node -> Special . String . HistoryHook,Work -> Gadget,NULL);
Node -> Special . String . NumHistoryLines--;
}
Work -> WorkBuffer[Work -> NumChars] = 0;
if(CallHookPkt(Node -> Special . String . HistoryHook,Work -> Gadget,Work -> WorkBuffer))
Node -> Special . String . NumHistoryLines++;
if(List -> mlh_Head -> mln_Succ)
Node -> Special . String . CurrentNode = (struct Node *)List -> mlh_TailPred;
else
Node -> Special . String . CurrentNode = NULL;
}
}
}